import { createApp } from "vue";
import App from "@/App.vue";
import "@/style/reset.scss";
import router from "@/router/index.ts";

// import HospitalTop from "@/components/hospital_top/index.vue";
// import HospitalBottom from "@/components/hospital_bottom/index.vue";

import ElementPlus from "element-plus";
//@ts-ignore
import zhCn from "element-plus/dist/locale/zh-cn.mjs";
import "element-plus/dist/index.css";
import * as ElementPlusIconsVue from "@element-plus/icons-vue";
import pinia from './stores/index.ts'
const app = createApp(App);

// 注册所有的图标- 不推荐
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component);
  // console.log(key);
}

// app.component("HospitalTop", HospitalTop);
// app.component("HospitalBottom", HospitalBottom);

 

app.use(pinia);   
app.use(router);
app.use(ElementPlus,{locale: zhCn});
app.mount("#app");
